package org.example;

public class Person {
    private String _name;
    private int _age;

    public Person(){}

    public Person(String name, int age){
        _name = name;
        _age = age;
    }

    public Person(String name){
        this(name, 0);
    }

    public void show(){
        System.out.println("姓名：" + _name + "，年龄：" + _age);
    }

    public String get_name() {
        return _name;
    }

    public void set_name(String _name) {
        _name = _name;
    }

    public int get_age() {
        return _age;
    }

    public void set_age(int _age) {
        _age = _age;
    }
}
